package com.jinhua.huaojbackendjudgeservice;

import com.jinhua.huaojbackendjudgeservice.rabbitmq.InitRabbitMQ;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication(/*exclude = {RedisAutoConfiguration.class}*/)
@EnableScheduling
@EnableAspectJAutoProxy(proxyTargetClass = true, exposeProxy = true)
@ComponentScan("com.jinhua")
@EnableDiscoveryClient
@EnableFeignClients(basePackages = {"com.jinhua.huaojbackendserviceclient.service"})
public class HuaojBackendJudgeServiceApplication {

    public static void main(String[] args) {
        InitRabbitMQ.doInit();
        SpringApplication.run(HuaojBackendJudgeServiceApplication.class, args);
    }

}
